package com.company.store;

import com.company.pojo.Pizza;
import com.company.pojo.concrete.characteristics.ChicagoCheesePizza;
import com.company.pojo.concrete.characteristics.ChicagoClamPizza;
import com.company.pojo.concrete.characteristics.ChicagoVeggiePizza;

/**
 * 芝加哥分店
 */
public class ChicagoPizzaStore extends PizzaStore {

    @Override
    public Pizza createPizza(String type) {
        Pizza pizza = null;

        if("cheese".equals(type)) {
            pizza = new ChicagoCheesePizza();
        } else if("clam".equals(type)) {
            pizza = new ChicagoClamPizza();
        } else if("veggie".equals(type)) {
            pizza = new ChicagoVeggiePizza();
        }

        return pizza;
    }

}
